package jvm.jtacck.serials;

import java.io.Serializable;

/**
 * @author Jesse Jeng
 * 
 *      The GPS class wraps two values of the primitive type double in an 
 *      object.
 *      
 *      An object of type GPS contains two fields whose types are double.
 *      
 */
public class GPS implements Serializable {
    
    /**
     * serialVersionUID for the class
     */
    private static final long serialVersionUID = -2128022093923591501L;

    /**
     * GPS coordinates - latitude
     */
    public final double latitude;
    
    /**
     * GPS coordinates - longitude
     */
    public final double longitude;
    
    /**
     * Constructs a newly allocated GPS object that represents the specified
     * GPS coordinates;
     * 
     * @param latitude
     *      The latitude to be contained in a GPS. 
     *      
     * @param longitude
     *      The longitude to be contained in a GPS. 
     *      
     */
    public GPS(double latitude, double longitude) {
        this.latitude = latitude;
        this.longitude = longitude;
    }
}
